<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <title>单价</title>
    <!-- import css and js -->
	<%@ include file="/common/metaInput.jsp" %>  
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
	var basic_Url="${ctx}/logic/fileUplode";
	$(function(){
		$("#inputForm").validate({			   
			onsubmit: true,
			 /*执行ajaxsubmit  */ 
		    submitHandler: function(editform) {
		        try{
		        	var now=new Date();
					var date=$("#zd008StepDate").val();
					var nowDate="";
					if(now.getMonth()==0){
						nowDate=(now.getFullYear()-1)+'12';
					}else{
						var m=now.getMonth();
						if(m.length==2){
							nowDate=now.getFullYear()+""+now.getMonth();
						}else{
							nowDate=now.getFullYear()+"0"+now.getMonth();
						}
					}
					var url=basic_Url+"/inPirce.do?zd008StepDate="+$("#zd008StepDate").val();
					/* if(date==nowDate&&date!=""){
					}else{
						$.dialog.alert("请选择时间");
						onsubmit: false;
						return false;
					} */
		            var api = frameElement.api;
		        	var W = api.opener;
		            getReturnMessage(url,"inputForm",W.searchAP);
		        }catch(e){alert(e);}
		    }
		});
	});	
	 function submitForm(){
		var ba=true;
		jQuery.ajaxSettings.async = false;
		if(ba){
		    $("#inputForm").submit();
		}
	 }
	 function close(){
			var api = frameElement.api;
			var W = api.opener;
			CloseDialog();
			W.searchAP();
		}
	</script>
  </head>
<body>
 <form id="inputForm" action="" method="post"  enctype="multipart/form-data" >
 <input id="zd008StepDate" name="zd008StepDate" value="${zd008StepDate}" type="text"/>
<input type="hidden" id="submitFlag" value="" />
 <div class="pageContent" >
    <table class="TableBlock" align="center">
   		           <tr>
   		                 <td nowrap>选择文件:</td>
   		                 <td>
   		                <input type="file" id="initExcel" name="initExcel" class="required" value="" />
   		                 </td>
   		           </tr>
                </table>
         <div class="formBar">
	        <ul>
	           <li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="save" onclick="inprice()">提交</button></div></div></li>
		       <li><div class="button"><div class="buttonContent"><button type="button" class="print" onclick="CloseDialog()">关闭</button></div></div></li>
	        </ul>
        </div>
        <br />
 </div>
</form>
</body>
</html>